package com.tx.websocket.demo.service;


import com.tx.websocket.demo.common.OffsetBean;
import com.tx.websocket.demo.model.BaseResource;

import java.util.List;

public interface ResourceService {

    Integer addResources(BaseResource baseResource);

    List<BaseResource> listResources(BaseResource baseResource, OffsetBean offsetBean);

    BaseResource getResourcesByPrimaryKey(Long id);

    Integer delResourcesByPrimaryKey(Long id);

    Integer updateResources(BaseResource baseResource);

    List<BaseResource> listResByUserId(Long userId);

    Integer totalResources(BaseResource baseResource);
}
